import Vue from 'vue'
import Router from 'vue-router'

const WXEMKonwledge = r => require.ensure([], () => r(require('@/pages/EMKnowledge')), 'WXEM-knowledge')
const WXEMKonwledge2 = r => require.ensure([], () => r(require('@/pages/EMKnowledge2')), 'WXEM-knowledge2')

const WXEMFun = r => require.ensure([], () => r(require('@/pages/EMFun')), 'WXEM-fun')
const WXEMFunMine = r => require.ensure([], () => r(require('@/pages/EMFun/EMFunMine')), 'WXEM-funmine')

const WXEMMine = r => require.ensure([], () => r(require('@/pages/EMMine')), 'WXEM-mine')
const WXEMMineMyarchives = r => require.ensure([], () => r(require('@/pages/EMMine/myarchives')), 'WXEM-mine-myarchives')
const WXEMMineMyhealth = r => require.ensure([], () => r(require('@/pages/EMMine/myhealth')), 'WXEM-mine-myhealth')
const WXEMMineMyfriends = r => require.ensure([], () => r(require('@/pages/EMMine/myfriends')), 'WXEM-mine-myfriends')
const WXEMMineAddfriends = r => require.ensure([], () => r(require('@/pages/EMMine/addfriends')), 'WXEM-mine-addfriends')
const WXEMMineMyservice = r => require.ensure([], () => r(require('@/pages/EMMine/myservice')), 'WXEM-mine-myservice')
const WXEMMineMyproposal = r => require.ensure([], () => r(require('@/pages/EMMine/myproposal')), 'WXEM-mine-myproposal')

Vue.use(Router)

export default new Router({
	mode: 'hash', // hash
	linkActiveClass: 'active',
  	routes: [
		{
			path: '/',
			name: 'WXEM-knowledge2',
			component: WXEMKonwledge2
		},
		// {
		// 	path: '/wxemknowledge',
		// 	name: 'WXEM-knowledge',
		// 	component: WXEMKonwledge
		// },
		{
			path: '/wxemknowledge2',
			name: 'WXEM-knowledge2',
			component: WXEMKonwledge2
		},
		{
			path: '/wxemfun',
			name: 'WXEM-WXEM-fun',
			component: WXEMFun
		},
		{
			path: '/wxemfun/wxemfunmine',
			name: 'WXEM-funmine',
			component: WXEMFunMine
		},
		{
			path: '/wxemmine',
			name: 'WXEM-mine',
			component: WXEMMine
		},
		{
			path: '/wxemmine/myarchives',
			name: 'WXEM-mine-myarchives',
			component: WXEMMineMyarchives
		},
		{
			path: '/wxemmine/myhealth',
			name: 'WXEM-mine-myhealth',
			component: WXEMMineMyhealth
		},
		{
			path: '/wxemmine/myfriends',
			name: 'WXEM-mine-myfriends',
			component: WXEMMineMyfriends
		},
		{
			path: '/wxemmine/myfriends/addfriends',
			name: 'WXEM-mine-addfriends',
			component: WXEMMineAddfriends
		},
		{
			path: '/wxemmine/myservice',
			name: 'WXEM-mine-myservice',
			component: WXEMMineMyservice
		},
		{
			path: '/wxemmine/myproposal',
			name: 'WXEM-mine-myproposal',
			component: WXEMMineMyproposal
		}
  	]
})
